﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
//using MS.Internal.Mita.Foundation;
using MS.Internal.Mita.Foundation;
using System.Drawing;
using System.Windows.Automation;


namespace UIAStudio
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            AutomationElement el = System.Windows.Automation.TreeWalker.ControlViewWalker.GetFirstChild(AutomationElement.RootElement);
            UIObject r = UIObject.Root;
            UICollection<UIObject> ch = r.Children;
            foreach (UIObject i in ch)
            {
                Console.WriteLine(i.Name);
            }
            //UIObject ui = UIObject.Root.Children.Find(UIProperty.Get("Name"), "Untitled - Notepad");
            //Rectangle r = ui.BoundingRectangle;
            Logger4net.Logger.Instance.Info("start");
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
    }
}
